package com.itheima.HomeWork.Work4;
/*
定义一个女朋友类。女朋友的属性包含：姓名，身高，体重。
行为包含：洗衣服wash()，做饭cook()。另外定义一个用于展示三个属性值的show()方法。
请在测试类中通过有参构造方法创建对象并赋值，然后分别调用展示方法、洗衣服方法和做饭方法。
打印效果如下：
 */

public class Girl {
    private String name;//姓名
    private double hight;//身高
    private double wight;//体重

    public Girl() {
    }

    public Girl(String name, double hight, double wight) {
        this.name = name;
        this.hight = hight;
        this.wight = wight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getHight() {
        return hight;
    }

    public void setHight(double hight) {
        this.hight = hight;
    }

    public double getWight() {
        return wight;
    }

    public void setWight(double wight) {
        this.wight = wight;
    }
    public  void wash(){
        System.out.println("女朋友帮我洗衣服");
    }
    public void  cook(){
        System.out.println("女朋友给我做饭");
    }
    public  void show(){
        System.out.println("我女朋友叫"+name+",身高"+hight+"厘米,体重"+wight+"斤");
    }
}
